<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/admin/sncss/js/jquery.js"></script>
<link href="__PUBLIC__/admin/sncss/css/combo.select.css" rel="stylesheet" type="text/css" />


</head>


<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
		<li><a>首页</a></li>
		<li><a>内部账号</a></li>
		<li><a>内部账号添加</a></li>
		</ul>
		</div>

		<div class="rightinfo">


		<form id="form1" name="form1" method="get" action="{:U('/Home/Inside/inside_add')}">
			<div class="tools">
			<div style="float: left; margin-bottom: 15px;">
				<input name="user_name" style="height: 38px;" type="text" class="dfinput" placeholder="搜索手机号" id="user" value="<?php echo $user_name;?>" />
			</div>
				<div style="float: left; margin-bottom: 15px;">
					<input type="submit" value="搜索" style="border:none;width:100px;height:40px; font-size:14px; cursor:pointer; line-height:40px;background:#61afdf;color:#fff;text-align:center;text-indent:0;display:block;float: left;margin-left: 5px;">
				</div>
			</div>
			</form>
			<div  class="tools">
				<ul class="nav">
					<li class="active"><a href="javascript:;">普通试题管理</a></li>
					<li><a href="{:U('add')}">添加普通试题</a></li>
				</ul>
			</div>
		<table class="tablelist">
			<thead>
			<tr>
				<th>编号<i class="sort"><img src="__PUBLIC__/admin/sncss/images/px.gif" /></i></th>
				<th>昵称</th>
				<if condition="$founder neq 3"><th>手机号</th></if>
				<th>年龄</th>
				<th>性别</th>
				<th>等级(分)</th>
				<th>信用分</th>
				<!-- <th width="200">被签约的自媒体</th> -->
				<th>是否绑定微信</th>
				<th>是否认证</th>
				<th>余额</th>
				<th>邀请人昵称</th>
				<th>操作</th>
				</tr>
				</thead>
				<tbody>

		<foreach name='userinfo' item='v'>
				<tr>
				<td>{$v.uuid}</td>
				<td>{$v.nickname}</td>
				<if condition="$founder neq 3"><td>{$v.username}</td></if>
				<td>{$v.age}</td>
				<if condition="$v.sex == 1">
					<td>男</td>
					<else />
					<td>女</td>
				</if>

				<td>{$v.level_type}({$v.level})</td>
				<td>{$v.score}</td>
				<!-- <td>{$v.mediadata}</td> -->
				<td><empty name="v.openid">未绑定<else />已绑定</empty></td>
				<td>
					<switch name="v.authentication" >
						<case value="0">否</case>
						<case value="1">是</case>
						<default />未知
					</switch>
				</td>
				<td>{$v.balance}</td>
				<td>{$v.invite_nickname}</td>
				<td>
					<a class="tablelink" onclick="addscore('{$v[uuid]}','{$v[nickname]}')" >加入内部账号</a>
				</td>
				</tr>
			 </foreach>
				</tbody>
		</table>
		<style>.pages a,.pages span {
		display:inline-block;
		padding:2px 5px;
		margin:0 1px;
		border:1px solid #f0f0f0;
		-webkit-border-radius:3px;
		-moz-border-radius:3px;
		border-radius:3px;
}
.pages a,.pages li {
		display:inline-block;
		list-style: none;
		text-decoration:none; color:#58A0D3;
}
.pages a.first,.pages a.prev,.pages a.next,.pages a.end{
		margin:0;
}
.pages a:hover{
		border-color:#50A8E6;
}
.pages span.current{
		background:#50A8E6;
		color:#FFF;
		font-weight:700;
		border-color:#50A8E6;
}</style>

	 <div class="pages"><br />

												<div align="right">{$page}
												</div>
	 </div>

		</div>



</body>
<script src="__PUBLIC__/admin/Js/jquery-1.7.2.min.js"></script>
<script src="__PUBLIC__/admin/Js/jquery.combo.select.js"></script>
<script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	$(function() {
		$('#u1_input').comboSelect();
		$('#u2_input').comboSelect();
		$('#u3_input').comboSelect();
		$('#u4_input').comboSelect();
	});
</script>
<script src="__PUBLIC__/layer/layer.js"></script>
<script type="text/javascript">
    function addscore(uuid,name){
        if(confirm('真的要给：'+name+'加为内部账号吗')==false)return false;
        $.ajax({
            url:"/Home/Inside/add_inside",
            dataType:"json",
            data:{"uuid":uuid},
            type:"post",
            success:function(data){
                if (data.code == '000000') {
                    alert('操作成功');
                    location.reload();
                } else {
                    alert('操作失败 请刷新重试');
                }
            },
        });
    }
</script>

</html>
